/*
 *
 *  * Copyright (c) [2019-2021] [NorthLan](lan6995@gmail.com)
 *  *
 *  * Licensed under the Apache License, Version 2.0 (the "License");
 *  * you may not use this file except in compliance with the License.
 *  * You may obtain a copy of the License at
 *  *
 *  *     http://www.apache.org/licenses/LICENSE-2.0
 *  *
 *  * Unless required by applicable law or agreed to in writing, software
 *  * distributed under the License is distributed on an "AS IS" BASIS,
 *  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  * See the License for the specific language governing permissions and
 *  * limitations under the License.
 *
 */

package org.lan.iti.iha.oidc;

/**
 * Property name of IDP service discovery
 *
 * @author NorthLan
 * @date 2021-07-05
 * @url https://noahlan.com
 * @see <a href="https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata" target="_blank">3.  OpenID Provider Metadata</a>
 */
public interface OidcDiscoveryParams {
    /**
     * Identity provider URL
     */
    String ISSUER = "issuer";

    /**
     * URL of the OP's OAuth 2.0 Authorization Endpoint
     */
    String AUTHORIZATION_ENDPOINT = "authorization_endpoint";

    /**
     * URL of the OP's OAuth 2.0 Token Endpoint
     */
    String TOKEN_ENDPOINT = "token_endpoint";

    /**
     * URL of the OP's UserInfo Endpoint
     */
    String USERINFO_ENDPOINT = "userinfo_endpoint";

    /**
     * URL of the OP's Logout Endpoint
     */
    String END_SESSION_ENDPOINT = "end_session_endpoint";

    /**
     * URL of the OP's JSON Web Key Set [JWK] document
     *
     * @see <a href="https://openid.net/specs/openid-connect-discovery-1_0.html#JWK" target="_blank">JWK</a>
     */
    String JWKS_URI = "jwks_uri";
}
